<?php

namespace app\model\agent;

use app\model\user\User;
use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;

class AgentBehaviourStatistic extends BaseModel
{
    use ModelTrait;

    /**
     * 数据表主键
     * @var string
     */
    protected $pk = 'id';

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'agent_behaviour_statistics';

    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'uid');
    }
}